//
//  UIViewController+Alert.h
//  habit
//
//  Created by huck on 2016/11/16.
//  Copyright © 2016年 custom. All rights reserved.
//

/*
 *需要在界面用到alert的时候，需要引入 #import "UIViewController+Alert.h" 头文件
 *
 */

#import <Foundation/Foundation.h>

typedef void(^XGAlarmViewClickBlock) (NSInteger index);

@interface UIViewController (Alert)<UIAlertViewDelegate,UIActionSheetDelegate>


@property(nonatomic,copy) XGAlarmViewClickBlock alarmViewClickBlock;//alert按钮点击回调


//集中弹框，UIAlerView & UIAlercontroller,回调是
-(void)showAlertWithTitle:(NSString *)title message:(NSString *)message cancelBottonTitle:(NSString *)cancelButtonTitle otherButtonTitle:(NSString *)otherButtonTitle clickBlock:(void (^)(NSInteger buttonIndex))clickBlock;

//集中弹框，UIActionsheet & UIAlercontroller,回调是
-(void)showActionSheetWithTitle:(NSString *)title message:(NSString *)message clickBlock:(void (^)(NSInteger buttonIndex))clickBlock cancelBottonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles,...;


@end
